/*package com.jt.mapper;

import com.jt.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.List;
//@Mapper
public interface UserMapper {
//    List<User> findAll();



//    @Delete("")//删除

//    User findUserByID(User id);
    @Select("(select * from demo_user)")//查询
    User getSelect(User user);
    @Insert("insert into demo_user(id,name,age,sex) value(null,#{name},#{age},#{sex})")//插入

    User getInsert(User user);
    @Update("update demo_user set age=#{age},sex=#{} where name=#{}")//更新
    User getUpdate(User user);

}*/
package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.User;


import java.util.List;
//@Mapper //Spring为该接口创建一个代理对象
//继承接口之后必须添加泛型对象，否则程序无法执行
public interface UserMapper extends BaseMapper<User> {
    //查询所有的user表数据
    List<User> findAll();

}